Crate strum_macros[−][src]
Expand description
Strum
Strum is a set of macros and traits for working with enums and strings easier in Rust.
Derive Macros
AsRefStr | Converts enum variants to |
AsStaticStr | |
Display | Converts enum variants to strings. |
EnumCount | Add a constant |
EnumDiscriminants | Generate a new type with only the discriminant names. |
EnumIter | Creates a new type that iterates of the variants of an enum. |
EnumMessage | Add a verbose message to an enum variant. |
EnumProperty | Add custom properties to enum variants. |
EnumString | Converts strings to enum variants based on their name. |
EnumVariantNames | Implements Strum::VariantNames which adds an associated constant |
IntoStaticStr | Implements |
ToString | implements |